<?php
namespace Admin\Controller;
use Think\Controller;
class IntroduceController extends Controller {

   public function introduce(){

       $data = M('uedit')->find(1);
       //发送数据并显示
       $this->assign('data',$data);
       $this->display();
   }
    public function send(){
        $data=I('post.');
        $data['id'] = 1;

        $data['content']=html_entity_decode($data['content']);

        //dump($data);exit();
        $res=M('uedit')->save($data);
            if($res){
            $this->success('添加成功',U('Introduce/introduce'));
        }else{
            $this->error('添加失败');
        }
    }

}